using UnityEngine;
using System.Collections;

public class Screens : MonoBehaviour 
{
	public Texture2D texture1;
	public Texture2D texture2;
	public string levelTag;
	public string level;
	
	void Start () 
	{
		
	}
	
	void Update () 
	{
		
	}
	
	void OnMouseEnter()
	{
		gameObject.renderer.material.mainTexture = texture2;
	}
	
	void OnMouseExit()
	{
		gameObject.renderer.material.mainTexture = texture1;
	}
	
	void OnMouseDown()
	{
		if(gameObject.tag == tag)
		{
			Application.LoadLevel(level);
		}
	}
}
